import { applyMiddleware, legacy_createStore as createStore } from "redux";
import mySage from "./mysaga";
import {combineReducers} from 'redux-immutable'
import createSagaMiddleware from 'redux-saga'
import {layout,login} from './modules/index'

const sagaMiddleware=createSagaMiddleware()
const store=createStore(combineReducers({
    layout,
    login
}),applyMiddleware(sagaMiddleware))
sagaMiddleware.run(mySage)
export default store